.dashboard-container {
  padding: 1rem;
}

.dashboard-title {
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

/* 加载和错误状态 */
.dashboard-loading,
.dashboard-error {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: #7f8c8d;
  font-size: 1.1rem;
}

.dashboard-error {
  color: #e74c3c;
}

/* 快速操作按钮 */
.quick-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.btn-large {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
}

.btn-icon {
  margin-right: 0.5rem;
}

/* 统计卡片 */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1.2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-card-content {
  text-align: center;
}

.stat-card-title {
  margin: 0 0 0.5rem 0;
  color: #7f8c8d;
  font-size: 0.95rem;
  font-weight: 500;
}

.stat-card-value {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  color: #2c3e50;
}

/* 图表容器 */
.charts-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
}

.chart-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1.2rem;
}

.chart-title {
  margin: 0 0 1rem 0;
  color: #2c3e50;
  font-size: 1.1rem;
  font-weight: 600;
}

.chart-content {
  height: 300px;
  position: relative;
}

/* 员工仪表盘样式 */
.employee-dashboard-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.recent-notifications-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #ecf0f1;
}

.card-header h2 {
  margin: 0;
  font-size: 1.2rem;
  color: #2c3e50;
}

.notifications-list {
  max-height: 500px;
  overflow-y: auto;
}

.notification-item {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #ecf0f1;
}

.notification-item.unread {
  background-color: #f8f9fa;
  border-left: 3px solid rgb(174, 0, 43);
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.notification-title {
  margin: 0;
  font-size: 1rem;
  color: #2c3e50;
}

.notification-time {
  font-size: 0.8rem;
  color: #bdc3c7;
}

.notification-content {
  margin: 0 0 0.5rem 0;
  color: #7f8c8d;
  font-size: 0.95rem;
  line-height: 1.5;
}

.notification-sender {
  font-size: 0.85rem;
  color: #7f8c8d;
}

.no-notifications {
  padding: 2rem;
  text-align: center;
  color: #7f8c8d;
}

/* 响应式调整 */
@media (max-width: 992px) {
  .charts-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .dashboard-title {
    font-size: 1.5rem;
  }

  .quick-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn-large {
    width: 100%;
    justify-content: center;
  }

  .charts-container {
    grid-template-columns: 1fr;
  }

  .chart-card {
    padding: 1rem;
  }

  .chart-content {
    height: 250px;
  }
}